projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6e58f8
)
gdk: Fix gdk_cairo_region_create_from_surface() with device offsets
author
Benjamin Otte
<otte@redhat.com>
Thu, 30 Sep 2010 14:24:11 +0000
(16:24 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 30 Sep 2010 14:24:41 +0000
(16:24 +0200)
gdk/gdkcairo.c
patch
|
blob
|
history
diff --git
a/gdk/gdkcairo.c
b/gdk/gdkcairo.c
index 026fef54539fb54012202e1aaf18124b5c480cc7..c1670eb566ac3cc89209bbd39c055491d3080b04 100644
(file)
--- a/
gdk/gdkcairo.c
+++ b/
gdk/gdkcairo.c
@@
-425,7
+425,7
@@
gdk_cairo_region_create_from_surface (cairo_surface_t *surface)
image = cairo_image_surface_create (CAIRO_FORMAT_A1,
extents.width, extents.height);
cr = cairo_create (image);
- cairo_set_source_surface (cr, surface,
extents.x,
extents.y);
+ cairo_set_source_surface (cr, surface,
-extents.x, -
extents.y);
cairo_paint (cr);
cairo_destroy (cr);
}